padding for random layout
edges are selected only if they are INSIDE the selection box