Add dropping elements at the last positions

Signed-off-by: Igor Yeryomin <yeryomin.igor@gmail.com>