You can make the divs(month, year,..) as droppable and while doing include option accept to restrict the droppable div's from accepting specific draggable div's.
You can try:
$( "#month1" ).droppable({ accept: ".month" });
Here is the API Documentation
You can also try scope option which is additional option to accept. For this you need to set same scope for draggable and droppable. Refer following API to set scope for DROPPABLE and DRAGGABLE.