detect side of selected block