When dragging layers in the timeline, hold down the Shift key. This will invoke snapping to things like heads of clips and visible keyframes.