force active index when appending and prepending index to ensure active index won't be affected because of slide manipulation