Added top/bottom snappig